<template>
  <div id="chB">
    <h3>{{msg}}</h3>
    <p>childrenA组件传来的信息：{{this.$store.state.msg}}</p>
  </div>
</template>
<script>
  import store from '../../vuex/store'

  export default{
      //注册
      store,
      data(){
          return {
              msg:"我是children的子组件childrenB"
          }
      }
  }
</script>
<style lang="scss">
  #chB{
    width: 50%;
    height: 200px;
    outline: solid 0.5px grey;
  }
</style>
